From d2c03d9417fb289d455f80f4c6facd7274c31d3e Mon Sep 17 00:00:00 2001
From: Biswa Kalyan Bhuyan <biswa@surgot.in>
Date: Mon, 28 Apr 2025 08:32:07 +0530
Subject: finance/backend: feat: Refined APIs for Loans and Goals based on
 frontend needs

---
 frontend/src/app/(main)/goals/edit/[id]/page.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'frontend/src/app/(main)/goals/edit/[id]/page.tsx')

diff --git a/frontend/src/app/(main)/goals/edit/[id]/page.tsx b/frontend/src/app/(main)/goals/edit/[id]/page.tsx
index ed51f92..4c02bb2 100644
--- a/frontend/src/app/(main)/goals/edit/[id]/page.tsx
+++ b/frontend/src/app/(main)/goals/edit/[id]/page.tsx
@@ -1,5 +1,6 @@
 import { Metadata } from "next";
 import { GoalForm } from "../../components/goal-form";
+import { use } from "react";
 
 export const metadata: Metadata = {
   title: "Edit Goal | Finance",
@@ -7,10 +8,11 @@ export const metadata: Metadata = {
 };
 
 export default function EditGoalPage({ params }: { params: { id: string } }) {
+  const unwrappedParams = use(params);
   return (
     <div className="container mx-auto py-8">
       <h1 className="text-2xl font-bold tracking-tight mb-6">Edit Goal</h1>
-      <GoalForm goalId={parseInt(params.id)} />
+      <GoalForm goalId={parseInt(unwrappedParams.id)} />
     </div>
   );
 } 
\ No newline at end of file
-- 
cgit v1.2.3-59-g8ed1b

